package cn.iocoder.yudao.module.voice.cc.acd.assign;


import cn.iocoder.yudao.module.core.po.AgentInfo;
import cn.iocoder.yudao.module.core.strategy.AgentStrategy;

/**
 * Created by caoliang on 2021/8/3
 * <p>
 * 最少通话时长优先分配
 */
public class LeastTalkAssign implements AgentStrategy {
    @Override
    public Long calculateLevel(AgentInfo agentInfo) {
        return -agentInfo.getTotalTalkTime();
    }
}
